package com.example.rest.plugin.module;

import com.alibaba.fastjson.JSONObject;
import com.example.base.app.AppFunction;
import com.example.rest.service.Demo;

import java.util.Map;

public class TestPlugin implements AppFunction {
    @Override
    public String getAppFunctionName() {
        return "testplugin";
    }

    @Override
    public Object appFunction(Map<String, Object> objectMap) {
        System.out.println(JSONObject.toJSONString(objectMap));
        Demo demo=new Demo();
        return demo.v1();
    }
}
